package com.anjie.powerproject.service;


import com.anjie.powerproject.entity.GraphInfo;

import java.text.ParseException;
import java.util.Date;
import java.util.List;

public interface GraphInfoService {

    public List<GraphInfo> getAllGraphInfo();

    /*List<GraphInfo> findGraphInfosByRemark(String remark);*/

    public GraphInfo addOneGraphInfo(GraphInfo graphInfo);

    public GraphInfo findGraphInfoById(Integer id);

    public List<GraphInfo> findGraphInfoByUseRule(Integer useRule);

    public GraphInfo saveAndFlush(GraphInfo graphInfo);

    void deleteGraphInfoByGraphId(Integer graphId);

    String updateGraphByXmlString(Integer graphId, String xmlString);

    void deleteAllGraphInfoByGraphId(Integer graphId);

    void updateStrategyTypeByGraphId(Integer strategyType,Integer graphId);

    GraphInfo updateGraphInfo(GraphInfo graphInfo) throws ParseException;

    boolean checkTime(String startTime, String endTime) throws ParseException;

    boolean checkTime2(String startTime, String endTime, Integer graphId) throws ParseException;

    GraphInfo findBeforeGraphInfo(Date now);
}
